package com.lzy.system.organization.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 登录日志
 * </p>
 *
 * @author lcc
 * @since 2023-11-14
 */
@TableName("sys_login_log")
@Data
@ApiModel(value = "SysLoginLog对象", description = "登录日志")
public class SysLoginLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty("用户账号")
    private String userid;

    @ApiModelProperty("姓名")
    private String username;

    @TableField(value = "login_time")
    @ApiModelProperty("登录时间")
    private Date loginTime;

    @ApiModelProperty("浏览器")
    private String browser;

    @ApiModelProperty("令牌")
    private String token;

    @ApiModelProperty("设备")
    private String device;

    @ApiModelProperty("user_agent")
    private String user_agent;

    @ApiModelProperty("ip")
    private String ip;

    @ApiModelProperty("token_uuid")
    private String token_uuid;
}
